{% extends "admin_base.html" %}
{% load humanize %}

{% block container %}
<div class="row">
  <div class="span12">
    <table class="table table-striped table-bordered">
      <thead>
        <tr>
          <th>User</th>
          <th>Activity</th>
          <th>Time</th>
        </tr>
      </thead>
      <tbody>
        {% for activity in activities %}
          <tr>
            <td><a href="/a/superadmin/stream/?username={{activity.user.username}}">
                {{activity.user.get_profile.number}}
            </a></td>
            <td>{{activity.description}}</td>
            <td>{{activity.created|naturaltime}}</td>
          </tr>
        {% endfor %}
      </tbody>
    </table>
    {% if prev_page %}
      <a class="btn" href="/a/superadmin/stream/{{prev_page}}/{%if username%}?username={{username}}{%endif%}">Page {{prev_page}}</a>
    {% endif %}
    <a class="btn pull-right" href="/a/superadmin/stream/{{next_page}}/{%if username%}?username={{username}}{%endif%}">Page {{next_page}}</a>
  </div>
</div>
{% endblock container %}